package lc.字符串;

/**
 * @description:
 * @author: qian
 * @createDate: 2021/10/14
 */
public class 剑指Offer58II_左旋转字符串 {
    public String reverseLeftWords(String s, int n) {


        StringBuilder str = new StringBuilder();

        for (int i = n; i < s.length(); i++) {
            str.append(s.charAt(i));
        }

        for (int i = 0; i < n; i++) {

            str.append(s.charAt(i));
        }
        return str.toString();
    }
}
